<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 17-4-25
 * Time: 下午2:42
 */

namespace Admin\Model;

use Think\Model;
class UserinfoModel extends Model{


    protected $_validate =array(
        array('tel','require','手机号不能为空',1,'regex',3),
        //array('mobile','/^1[3|4|5|8][0-9]\d{4,8}$/','手机号码格式错误！','0','regex',1),
        array('password','require','密码不能为空',1,'regex',1),
        array('password','6,20','密码不能少于6位或者大于20个字符',1,'length',3),
        array('repassword','password','两次输入密码不一致',1,'confirm',3),
        array('tel','','手机号已经被注册',1,'unique',3),
    );

    protected $_auto =array(

        array('password','md5',1,'function'),


    );




} 